package com.blockmeta.bbs.businesslibrary.pojo;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by author on 2018/2/1.
 */

public class ActiveJoinPOJO implements Parcelable {


    private String applyid;
    private String tid;
    private String username;
    private String uid;
    private String message;
    private String verified;
    private String dateline;
    private String payment;
    private String subject;
    private ActivityBean activity;


    protected ActiveJoinPOJO(Parcel in) {
        applyid = in.readString();
        tid = in.readString();
        username = in.readString();
        uid = in.readString();
        message = in.readString();
        verified = in.readString();
        dateline = in.readString();
        payment = in.readString();
        subject = in.readString();
    }

    public static final Creator<ActiveJoinPOJO> CREATOR = new Creator<ActiveJoinPOJO>() {
        @Override
        public ActiveJoinPOJO createFromParcel(Parcel in) {
            return new ActiveJoinPOJO(in);
        }

        @Override
        public ActiveJoinPOJO[] newArray(int size) {
            return new ActiveJoinPOJO[size];
        }
    };

    public String getApplyid() {
        return applyid;
    }

    public void setApplyid(String applyid) {
        this.applyid = applyid;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getVerified() {
        return verified;
    }

    public void setVerified(String verified) {
        this.verified = verified;
    }

    public String getDateline() {
        return dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public ActivityBean getActivity() {
        return activity;
    }

    public void setActivity(ActivityBean activity) {
        this.activity = activity;
    }

//    public List<FieldBean> getField() {
//        return field;
//    }
//
//    public void setField(List<FieldBean> field) {
//        this.field = field;
//    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(applyid);
        parcel.writeString(tid);
        parcel.writeString(username);
        parcel.writeString(uid);
        parcel.writeString(message);
        parcel.writeString(verified);
        parcel.writeString(dateline);
        parcel.writeString(payment);
        parcel.writeString(subject);
    }

    public static class ActivityBean implements Parcelable {
        /**
         * tid : 127716
         * uid : 192463
         * aid : 264731
         * cost : 0
         * starttimefrom : 1517722200
         * starttimeto : 1517731200
         * place : （广东深圳）南山区海天一路软件产业基地5栋B座3层
         * class : 课程讲座
         * gender : 0
         * number : 60
         * applynumber : 0
         * expiration : 2018-2-3 17:00
         * ufield : a:2:{s:9:"userfield";a:5:{i:0;s:8:"realname";i:1;s:6:"mobile";i:2;s:7:"company";i:3;s:8:"position";i:4;s:6:"field1";}s:8:"extfield";a:0:{}}
         * credit : 0
         * guest :
         * thumb : http://8btc.com/data/attachment/forum/201801/29/165430z92kdj222c9rquz2.jpg
         * attachurl : http://8btc.com/data/attachment/forum/201801/29/165430z92kdj222c9rquz2.jpg
         * width : 540
         */

        private int tid;
        private String uid;
        private String aid;
        private String cost;
        private String starttimefrom;
        private String starttimeto;
        private String place;
        @SerializedName("class")
        private String classX;
        private String gender;
        private String number;
        private String applynumber;
        private String expiration;
        private String ufield;
        private String credit;
        private String guest;
        private String thumb;
        private String attachurl;
        private String width;

        protected ActivityBean(Parcel in) {
            tid = in.readInt();
            uid = in.readString();
            aid = in.readString();
            cost = in.readString();
            starttimefrom = in.readString();
            starttimeto = in.readString();
            place = in.readString();
            classX = in.readString();
            gender = in.readString();
            number = in.readString();
            applynumber = in.readString();
            expiration = in.readString();
            ufield = in.readString();
            credit = in.readString();
            guest = in.readString();
            thumb = in.readString();
            attachurl = in.readString();
            width = in.readString();
        }

        public static final Creator<ActivityBean> CREATOR = new Creator<ActivityBean>() {
            @Override
            public ActivityBean createFromParcel(Parcel in) {
                return new ActivityBean(in);
            }

            @Override
            public ActivityBean[] newArray(int size) {
                return new ActivityBean[size];
            }
        };

        public int getTid() {
            return tid;
        }

        public void setTid(int tid) {
            this.tid = tid;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getAid() {
            return aid;
        }

        public void setAid(String aid) {
            this.aid = aid;
        }

        public String getCost() {
            return cost;
        }

        public void setCost(String cost) {
            this.cost = cost;
        }

        public String getStarttimefrom() {
            return starttimefrom;
        }

        public void setStarttimefrom(String starttimefrom) {
            this.starttimefrom = starttimefrom;
        }

        public String getStarttimeto() {
            return starttimeto;
        }

        public void setStarttimeto(String starttimeto) {
            this.starttimeto = starttimeto;
        }

        public String getPlace() {
            return place;
        }

        public void setPlace(String place) {
            this.place = place;
        }

        public String getClassX() {
            return classX;
        }

        public void setClassX(String classX) {
            this.classX = classX;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getApplynumber() {
            return applynumber;
        }

        public void setApplynumber(String applynumber) {
            this.applynumber = applynumber;
        }

        public String getExpiration() {
            return expiration;
        }

        public void setExpiration(String expiration) {
            this.expiration = expiration;
        }

        public String getUfield() {
            return ufield;
        }

        public void setUfield(String ufield) {
            this.ufield = ufield;
        }

        public String getCredit() {
            return credit;
        }

        public void setCredit(String credit) {
            this.credit = credit;
        }

        public String getGuest() {
            return guest;
        }

        public void setGuest(String guest) {
            this.guest = guest;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getAttachurl() {
            return attachurl;
        }

        public void setAttachurl(String attachurl) {
            this.attachurl = attachurl;
        }

        public String getWidth() {
            return width;
        }

        public void setWidth(String width) {
            this.width = width;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeInt(tid);
            parcel.writeString(uid);
            parcel.writeString(aid);
            parcel.writeString(cost);
            parcel.writeString(starttimefrom);
            parcel.writeString(starttimeto);
            parcel.writeString(place);
            parcel.writeString(classX);
            parcel.writeString(gender);
            parcel.writeString(number);
            parcel.writeString(applynumber);
            parcel.writeString(expiration);
            parcel.writeString(ufield);
            parcel.writeString(credit);
            parcel.writeString(guest);
            parcel.writeString(thumb);
            parcel.writeString(attachurl);
            parcel.writeString(width);
        }
    }

    public static class FieldBean {
        /**
         * key : realname
         * value : www
         */

        private String key;
        private String value;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }



}
